home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekikoh Dennoh Club 5
/
Gekikoh Dennoh Club Vol. 5 (Japan).7z
/
Gekikoh Dennoh Club Vol. 5 (Japan) (Track 01).bin
/
games
/
rosa3
/
src
/
spload.s
< prev
next >
Wrap
Text File
|
1997-12-14
|
2KB
|
63 lines
.include doscall.mac
.include iocscall.mac
* òΓæ½üFé⌐é╚éΦüAÉ╠é╔ì∞ɼé╡é╜âQü[âÇé⌐éτô]é¬é╡é╜Åêù¥é╚é╠é┼
* û│æ╩é╚Äûé≡üAÉÅò¬éΓé┴é─éóé▄é╖üB
* âRâüâôâgé≡â}âüé╔ôⁿéΩé─éΘé╠é═üAôûÄ₧âAâZâôâuâëé≡ò╫ï¡
* é╡é╚é¬éτì∞ɼé╡é╜ê╫é┼é╖üBüiôûÄ₧üAâ\ü[âXé╔æSèpò╢ÄÜé¬ùLéΘé╠é¬üAéóéΓé┼é╡é╜üj
* ì┼ôKë╗é╡éµéñé╞Ävéóé▄é╡é╜é¬üAÅoùêé▄é╣é±é┼é╡é╜üBüiÄ₧è╘òsæ½üj
IOCS equ $0F
.text
.even
move.l #_CRTMOD,d0 * ╕▐╫╠¿»╕ ╙░─▐ 256 * 256
move.w #6,d1 * 256 * 256 Mode
trap #IOCS
move.l #_B_SUPER,d0 * ╒░╗▐░ --> ╜░╩▀░ ╙░─▐
move.l #0,d1
movea.l d1,a1
trap #IOCS
move.l d0,-(sp) * ssp ╬┐▐▌
IOCS _SP_INIT
sp_load:
tst (Set_Counter) * ╜╠▀╫▓─ ╔ ╛»─ ╣▌╜│ ╔ 0 ╣▌ ┴¬»╕
beq pl_load * 0 ╔ ─╖ ╞ ╩ pl_load ═ ╠▐╫▌┴
sp_load_main:
lea Sprite_Data_Area,a1 * A1 ┌╝▐╜└ = ╜╠▀╫▓─ ├▐░└ ▒─▐┌╜
lea Set_Pattern_No,a2 * A2 ┌╝▐╜└ = ╛»─ ├▐░└ ▒─▐┌╜
sp_load_loop_1:
movea.l #$EB8000,a0 * A0 ┌╝▐╜└ = PCG ┤╪▒ ▒─▐┌╜
move (a2)+,d0 * D0 ┌╝▐╜└ = ╛»─ ╢╝«
mulu #128,d0 * D0 = D0 * 128
add.l d0,a0 * A0 = A0 + D1 ( PCG ╢╕╔│ ▒─▐┌╜ )
move.w #64,d0 * D0 ┌╝▐╜└ = ├▐░└ ╛»─ ╣▌╜│
* ext.w d0 * D0 ┌╝▐╜└ ª ╠║▐│ ╢╕┴«│üiüHüj
sp_load_loop_2:
move.w (a1)+,(a0)+ * ├▐░└ ╢╕╔│ ( ▒─▐┌╜ ╩ ╬▀╜─ ▓▌╕╪╥▌─ )
sub #1,d0
bne sp_load_loop_2 * D0 ┌╝▐╜└ ╔ ╢▓╜│ ╠▐▌ sp_load_loop_2 ª ┘░╠▀
sub #1,(Set_Counter)
bne sp_load_loop_1 * Set_Counter ╔ ╢▓╜│ ╠▐▌ sp_load_loop_1 ª ┘░╠▀
pl_load:
movea.l #$E82200,a0 * A0 ┌╝▐╜└ = ╩▀┌»─ ▒─▐┌╜
lea Palet_Area,a1 * A1 ┌╝▐╜└ = ╩▀┌»─ ├▐░└ ╢╕╔│ ▒─▐┌╜
move.w #256,d0
pl_load_loop:
move (a1)+,(a0)+ * ╩▀┌»─ ╢╫░ ║░─▐ ├▌┐│
sub #1,d0
bne pl_load_loop
move.l #_B_SUPER,d0 * ╜░╩▀░ ░░> ╒░╗▐░ ╙░─▐
move.l (sp)+,d1
movea.l d1,a1
trap #IOCS
dc.w _EXIT
.include rosa.sp